package cn.supuwoerc.refell;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component("myAspect2")
@Aspect
public class MyAspect {
    //execution(public void cn.lookup.aop.*.*(..))
    @Before("execution(public void cn.supuwoerc.refell.*.*(..))")
    public void before(){
        System.out.println("before is running...");
    }
    @AfterReturning("execution(public void cn.supuwoerc.refell.*.*(..))")
    public void after(){
        System.out.println("after is running...");
    }
    @After("execution(public void cn.supuwoerc.refell.*.*(..))")
    public void last(){
        System.out.println("finally is running...");
    }
}
